package com.example.administrator.uis.view

import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.util.AttributeSet
import android.view.View

/**
 * Created by Administrator on 2017/11/10 0010.
 */
class PracticeDrawColorView:View {
    constructor(context: Context?):super(context) {
    }
    constructor(context: Context?, attrs: AttributeSet?):super(context,attrs){
    }
    constructor(context: Context?,attrs: AttributeSet?,defStyle:Int):super(context, attrs,defStyle){

    }

    override fun onDraw(canvas: Canvas?) {
        super.onDraw(canvas)
        canvas?.drawColor(Color.YELLOW)
    }

}